package com.ruoyi.client.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 收藏记录
 * </p>
 *
 * @author fz
 * @since 2025-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("blog_collect")
public class BlogCollect implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    /**
     * 文章id
     */
    private Long targetId;
    private Integer targetType;
    private Long userId;
    /**
     * 文章标题
     */
    private String title;


    /**
     * 跳转的路径
     */
    private String url;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
    /**
     * 是否收藏
     */
    @TableField(exist = false)
    private Boolean isCollect;


}
